.c-body
  //- 加载中
  .loadding(:class="loaddingClass")
    .load-txt 加载数据中...
    .load-ico

  //- 加载失败
  .loaded-fail(:class="loadedFailClass") {{loadedFail}}

  //- 加载成功
  div(:class="loadedSuccClass")

    //- 注册网页内容
    .c-content
      //- 导航条
      .bread-nav
        .crumbs
          router-link(to='/') 首页 >
          span &nbsp;&nbsp;用户注册

      //- 注册操作提示
      c-top-tips(:top-tips-option="topTipsOption")

      //- 注册表单
      form.pure-form.reg-form(autocomplete="off" v-if='!regStatu')
        fieldset
          .c-reg-title
            span ——
            h2 用户注册
            span ——
          .pure-control-group.c-reg-name
            div(v-bind:class="{'err-border':errorType==1}")
              span
              input(type="text" v-model="user.name" placeholder="用户名" @focus.stop.prevent='errorType=0')
          .pure-control-group.c-reg-pwd
            div(v-bind:class="{'err-border':errorType==2}")
              span
              input(type="password" v-model="user.pwd" placeholder="设置密码" @focus.stop.prevent='errorType=0')
          .pure-control-group.c-reg-repwd
            div(v-bind:class="{'err-border':errorType==2}")
              span
              input(type="password" v-model="user.repwd" placeholder="确认密码" @focus.stop.prevent='errorType=0')
          .pure-control-group.c-reg-phone
            div(v-bind:class="{'err-border':errorType==4}")
              span
              input(type="text" v-model="user.phone" placeholder="手机号码" @focus.stop.prevent='errorType=0')
          .pure-control-group.c-reg-email
            div(v-bind:class="{'err-border':errorType==5}")
              span
              input(type="email" v-model="user.email" placeholder="电子邮箱" @focus.stop.prevent='errorType=0')
          .pure-control-group.c-reg-id-kind
            div(v-bind:class="{'err-border':errorType==6}")
              span
              select(type="text" v-model="id_obj" @focus.stop.prevent='errorType=0')
                option(value='-1' style='display:none') ---请选择证件类型---
                option(:value='item' v-for="item in idCardType") {{item.id_kind_name}}
          .pure-control-group.c-reg-id-no
            div(v-bind:class="{'err-border':errorType==7}")
              span
              input(type="text" v-model="user.id_no" placeholder="证件号码" @focus.stop.prevent='errorType=0')
          .pure-control-group.c-reg-id-date
            div(v-bind:class="{'err-border':errorType==8}")
              span
              input(type="date" v-model="user.id_begindate" @focus.stop.prevent='errorType=0')
            p.c-id-date 证件开始日期
          .pure-control-group.c-reg-id-date
            div(v-bind:class="{'err-border':errorType==9}")
              span
              input(type="date" v-model="user.id_enddate" @focus.stop.prevent='errorType=0')
            p.c-id-date 证件结束日期
          .pure-control-group.c-reg-captcha
            div.c-captch(v-bind:class="{'err-border':errorType==3}")
              span
              input(type="text" v-model="captchaVal" placeholder="验证码" @focus.stop.prevent='errorType=0')
              img.c-vcode-img(v-bind:src="captchaSrc" @click.stop.prevent="refreshCaptcha()")
          .pure-controls.c-reg-btn
            button.pure-button.pure-button-primary(type="none" @click.stop.prevent="doRegister();") 注册

      .c-reg-success(v-else)
        .c-succ-tip
          span.c-succ-img 注册成功！
        button.pure-button.pure-button-primary
          router-link.c-btn-login(to='/login' style="{color:#fff}") 立即登录